package com.sc.dal.mapper.consultComment;

import java.util.List;
import java.util.Map;

import com.sc.dal.model.consultComment.ConsultComment;

public interface ConsultCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ConsultComment record);

    int insertSelective(ConsultComment record);

    ConsultComment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ConsultComment record);

    int updateByPrimaryKey(ConsultComment record);
    
    //根据条件查询足迹信息
    List<ConsultComment> selectByBoolean(Map<String, Object> map);

    //根据类型查询咨询、评价、浏览集合信息
    List<ConsultComment> selectByConsultCommentList(ConsultComment record);
    /**
     * 分页根据条件查询
     * @param map
     * @return
     */
    List<ConsultComment> selectByPageView(Map<String, Object> paramMap);
    /**
     * 分页查询
     * @param paramMap
     * @return
     */
    List<ConsultComment> select(Map<String, Object> paramMap);
    /**
     * 查询最近7条数据
     * @param map
     * @return
     */
    List<ConsultComment> queryLatelyTracks(Map<String, Object> paramMap);
    /**
     * 根据商品Id查询人员信息
     * @param id
     * @return
     */
    List<String> findConsultByGoodsId(Integer id);
    /**
     * 根据人员获取商品ID
     * @param id
     * @return
     */
    List<String> findConsultByCreater(Map<String, Object> idMap);
    /***
     * 根据ID查询包含的子级
     * @param map
     * @return
     */
    List<ConsultComment> selectParentList(Map<String, Object> map);

	List<ConsultComment> selectCommentByParam(ConsultComment comment);

	ConsultComment selectParentConsultComment(ConsultComment comment);
    /****
     * 判断是否评论，追加评论
     * @param idMap
     * @return
     */
	List<String> findIsComment(Map<String, Object> Map);
	
	
}